<?php

/**
 * 
 */
class Default_IndexController extends Zend_Controller_Action {

    private $_local;
    /**
     * (non-PHPdoc)
     * @see Zend_Controller_Action::init()
     */
    public function init() {
        $cache = App_Plugins_Default_Layout::cache();
        $cache->save('fundo.png', 'imgFundo');
        $this->_local = new Model_Mapper_Local();
        
    }

    /**
     * 
     * @access public
     * @return void
     */
    public function indexAction() {
        $this->_helper->layout->disableLayout();
        
        $cidade = $this->_local->cidadeDestaque()->toArray();
        $this->view->local = $cidade[0];
        
    }

}